<script>
alert('<?= $this->ret['message']?>');
window.location='<?= $this->ret['url']?$this->ret['url']:$_SERVER['HTTP_REFERER']?>';
</script>